package com.xx.entity;

import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "test")
@Data
@ToString
@Builder
public class People implements java.io.Serializable {

    @Indexed
    private String name;

    @Indexed
    private int age;
}
